package com.weipai.demo.mapper.manager;


import com.weipai.demo.model.ManagerProduct;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface DCManagerProductMapper {


    List<Map<String, Object>> selectByNull(ManagerProduct managerProduct);


    List<Map<String, Object>> selectByMProduct(@Param("productName") String productName, @Param("status") String status, @Param("publishStatus") Integer publishStatus,@Param("managerPhone") String managerPhone);

    List<Map<String, Object>> selectByMAProduct(@Param("productName") String productName, @Param("status") String status, @Param("publishStatus") Integer publishStatus, @Param("createTime") String createTime, @Param("createTimes") String createTimes,@Param("managerPhone") String managerPhone);

    List<Map<String, Object>> selectBySupply(@Param("totleFee") String totleFee, @Param("monthlySupply") String monthlySupply);

    Map<String, Object> getDetail(@Param("id") Integer id);

    Integer changeStatus(@Param("id") Integer id,@Param("publishStatus") Integer publishStatus);
}